package com.czxy.service;

import com.czxy.dao.BrandMapper;
import com.czxy.pojo.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 品牌Service
 * @author Liuyunqin 17674029449@163.com
 * @date 2018/12/20 16:09
 */
@Service
@Transactional
public class BrandService {

    @Autowired
    private BrandMapper brandMapper;

    /**
     * 根据三级分类id查询 品牌
     * @param catId
     * @return
     */
    public List<Brand> findBrandByCatId(Integer catId) {
        List<Brand> brandByCatId = this.brandMapper.findBrandByCatId(catId);
        return brandByCatId;
    }
}
